<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
      <!--xsl:for-each select="//answer">
          <p>Has Results: <xsl:value-of select="hasResults"/></p>
          <p>Hits Total: <xsl:value-of select="results/hitsTotal"/></p>
          <p>Page Number: <xsl:value-of select="results/pageNumber"/></p>
          <p>Hits for This Page: <xsl:value-of select="results/hitsForThisPage"/></p>
      </xsl:for-each-->

  <table border="1">
    <tr bgcolor="#9acd32">
      <th>name</th>
      <th>size</th>
      <th>tags</th>
      <th>rate</th>
      <th>added</th>
      <th>password</th>
    </tr>
    <xsl:for-each select="//hits">
    <tr>
      <td>
          <a target="_blank">
              <xsl:attribute name="href">
                  <xsl:value-of select="link"/>
              </xsl:attribute>
              <xsl:value-of select="name"/>.<xsl:value-of select="extension"/>
          </a>
      </td>
      <td><xsl:value-of select="size"/></td>
      <td><xsl:value-of select="tags"/></td>
      <td><xsl:value-of select="rate"/></td>
      <td><xsl:value-of select="added"/></td>
      <td><xsl:value-of select="password"/></td>
    </tr>
    </xsl:for-each>
  </table>
</xsl:template>

</xsl:stylesheet>